#include<stdio.h>

/*
    &用来取指针变量对应地址，变量前不加&也表示地址
    *用来取指针变量对应的值
*/
int main(void)
{
int number=0;//初始化int类型的变量number
//int *pointer=NULL;//初始化指针类型的变量pointer

number=10;//给变量number赋值10
printf("number's address:%p\n",&number);//打印number的地址
printf("number's value:%d\n",number);//打印number的值

int *pointer=&number;//将number的地址赋值给指针变量pointer

printf("pointer's address:%p\n",&pointer);
printf("pointer's value:%p\n",pointer);
printf("value pointed to:%d\n ",*pointer);
return 0;
}